<?
//获取所在地区
function getprovince($provinceID){
	global $db,$db_prefix;
	$sqlp="select province from {$db_prefix}province where provinceID='$provinceID'";
	$rsp=$db->get_one($sqlp);
	return $rsp['province'];
}
function getcity($cityID){
	global $db,$db_prefix;
	$sqlp="select city from {$db_prefix}city where cityID='$cityID'";
	$rsp=$db->get_one($sqlp);
	return $rsp['city'];
}
function getarea($areaID){
	global $db,$db_prefix;
	$sqlp="select area from {$db_prefix}area where areaID='$areaID'";
	$rsp=$db->get_one($sqlp);
	return $rsp['area'];
}
?>